package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.SkuDevice;
import com.wing.cabinet.model.request.SkuDeviceForm;
import com.wing.cabinet.model.response.SkuDeviceVO;

import java.util.List;
import java.util.Map;

/**
 * 领新sku 设备关联关系-Service
 *
 * @author
 */
public interface SkuDeviceService extends IService<SkuDevice> {

    /**
     * 添加
     *
     * @param skuDeviceForm
     * @return
     */
    int add(SkuDeviceForm skuDeviceForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<SkuDeviceVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<SkuDeviceVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    SkuDeviceVO get4appById(Long id);
}
